<template>
	<view>
		<view class="u-p-30 u-flex-y-center">
			<!-- <image src="../../static/logo.png" style="width: 226rpx;height: 199rpx;border-radius: 10rpx;"></image> -->
			<view class="">
				<view class="u-f-28 u-m-b-26">
					物流公司：<text class="u-bold">{{info.expressName}}</text>
				</view>
				<view class="u-f-28">
					快递单号：<text>{{info.number}}</text>
				</view>
			</view>
		</view>
		<u-gap height="16rpx" bg-color="#F5F5FA"></u-gap>
		<view style="padding: 40rpx 30rpx;">
			<view class="u-f-36 u-bold u-m-b-50">查询结果</view>
			<view style="padding: 0 24rpx;height: 80vh;overflow-y: auto;">
				<view class="lineBox u-p-r" v-for="(item,index) in info.logisticsList"
					:style="{border:index+1==3?'none':''}">
					<view :class="index==0?'quan':'quan2'">
					</view>
					<view class="u-flex-y-center u-flex-between" :style="{color: index==0?'#007FFF':''}">
						<view class="u-flex-y-center">
							<!-- <view class="u-f-28 u-bold">运输中</view> -->
							<view class="u-f-28" :style="{color:index==0?'#101010':'#7E7E7E'}">{{item.time}}</view>
						</view>
			
					</view>
					<view class="u-m-t-16 u-f-32" :style="{color:index==0?'#101010':'#7E7E7E'}">
						{{item.context}}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				order_no:'',
				info:''
			}
		},
		onLoad(opt){
			this.order_no=opt.order_no
			this.loadData()
		},
		methods: {
			async loadData(){
				let data={
					order_no:this.order_no
				}
				const res=await uni.$u.http.post('Order/showExpress', data)
				this.info=res
				
			}
		}
	}
</script>

<style lang="scss">
.lineBox {
		border-left: 1px solid #DDDFEB;
		padding-left: 32rpx;
		padding-bottom: 40rpx;

		.quan {
			width: 13rpx;
			height: 13rpx;
			background: #007FFF;
			border-radius: 50%;
			position: absolute;
			left: -6rpx;
			top: 0rpx;
		}

		.quan2 {
			width: 13rpx;
			height: 13rpx;
			background: #DDDFEB;
			border-radius: 50%;
			position: absolute;
			left: -6rpx;
			top: 0rpx;
			box-sizing: border-box;
		}
	}
</style>
